package com.test.service.impl;

import com.test.service.UserService;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

@Service
public class UserServiceImpl implements UserService {

    @Override
    public String queryUserInfo(final String userId) throws InterruptedException {

        TimeUnit.SECONDS.sleep(1L);

        return "我是谁（" + userId + ")";
    }

}
